/**
 *  @Author MJreams
 *  @Time 2023/12/13 21:15:00
 *
**/

package serviceOne

import (
	"fmt"
	"github.com/wwxcli/cmd/serviceOne/options"
)

type ServiceOne struct {
	opt *options.Options
}

func (s *ServiceOne) Start() {
	fmt.Println("service one start")
	fmt.Println(s.opt.Age)
}
func Run() {
	fmt.Println("run service one")
	serviceOne := InitServerOne()
	serviceOne.Start()
}
func InitServerOne() *ServiceOne {
	return &ServiceOne{
		opt: options.NewOptions(),
	}
}
